import { notificationInjectKey } from "@/components/types";

export function useNotification() {
  const notification = inject(notificationInjectKey);
  if (!notification) {
    throw new Error("useNotification() is called without provider.");
  }
  return notification;
}
